import request from '@/utils/request'

// 查询网络安全事件列表
export function listInsurance_incident(query) {
  return request({
    url: '/insurance/insurance_incident/list',
    method: 'get',
    params: query
  })
}

// 查询网络安全事件详细
export function getInsurance_incident(incidentId) {
  return request({
    url: '/insurance/insurance_incident/' + incidentId,
    method: 'get'
  })
}

// 新增网络安全事件
export function addInsurance_incident(data) {
  return request({
    url: '/insurance/insurance_incident',
    method: 'post',
    data: data
  })
}

// 修改网络安全事件
export function updateInsurance_incident(data) {
  return request({
    url: '/insurance/insurance_incident',
    method: 'put',
    data: data
  })
}

// 删除网络安全事件
export function delInsurance_incident(incidentId) {
  return request({
    url: '/insurance/insurance_incident/' + incidentId,
    method: 'delete'
  })
}
